Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |to_ipv4

net/ip::|to_ipv4


Usage

|to_ipv4(text)

Parameters

↳ text: string

Return

Option<Ipv4>


Parse text into an Ipv4 address, returning none if text is not a valid IPv4 address.